package Servlet;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.http.HttpServlet;

/**
 * Just a simple class that creates a context.
 */
public class GetContext extends HttpServlet{
   
    public static synchronized Context getContext() throws NamingException{
        Context ctx = (Context) new InitialContext().lookup("java:comp/env");
        return ctx;
    }
}
